package com.huawang.mdesign.model.service.request;

import com.huawang.business.constants.ParamErrorConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import com.huawang.business.dto.ProjectIdDTO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class QueryRelationshipDTO extends ProjectIdDTO {

    private String projectId;

    @NotBlank(message = ParamErrorConstants.NO_FIRSTEND_ID)
    @Schema(title = "关系某一端的模型id")
    private String firstEndId;

    @Schema(title = "关系另一段的模型id数组")
    private List<String> secondEndIds;

    @Schema(title = "关系的方向，in,out,inout")
    private String direction;
}
